package com.ylc.chat.service;

import com.ylc.chat.dao.FriendsDao;

/**
 * @Author: ylc
 * @Description:
 */
public class FriendsService {
    FriendsDao friendsDao = new FriendsDao();

    /**
     * 根据用户uid获取其好友uid列表
     * @param uid
     * @return
     */
    public String[] getFriends(int uid){
        String friends = friendsDao.getFriends(uid);
        return friends.split(",");

    }
}
